#ifndef __HEIGHT_MAP_H__
#define __HEIGHT_MAP_H__

#include "../Utilities/utilities.h"
#include "Vertex.h"

class HeightMap
{
	GLushort *heightSrc;
public:
	GLfloat *HeightData;
	int m_iCols;
	int m_iRows;
public:
	HeightMap();
	void Init(char *fileRAW, int iRows, int iCols, float fHeightScale, float fHeightOffset);
	GLushort * LoadRAW(char *fileRAW);
	bool InBounds(int i, int j);
	GLfloat Sampler3x3(int i, int j);
	void Filter3x3();
	~HeightMap();
};

#endif